home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / time.h < prev   
C/C++ Source or Header  |  1989-05-21  |  1KB  |  41 lines

  1. /* Copyright 1989 Manx Software Systems, Inc */
  2.  
  3. #ifndef __TIME_H
  4. #define __TIME_H
  5.  
  6. #ifndef __STDDEF_H
  7. #include <stddef.h>
  8. #endif
  9.  
  10. #define CLOCKS_PER_SEC 100    /* clock() ticks per second */
  11.  
  12. typedef unsigned long clock_t;
  13. typedef unsigned long time_t;
  14.  
  15. struct tm {
  16.     int tm_sec;        /* seconds after the minute [0,60] */
  17.     int tm_min;        /* minutes after the hour [0,59] */
  18.     int tm_hour;    /* hours since midnight [0,23] */
  19.     int tm_mday;    /* day of the month [1,31] */
  20.     int tm_mon;        /* months since jan [0,11] */
  21.     int tm_year;    /* years since 1900 */
  22.     int tm_wday;    /* days since sunday [0,6] */
  23.     int tm_yday;    /* days since jan 1 [0,365] */
  24.     int tm_isdst;    /* pos if DST in effect; 0 if not; neg if can't tell */
  25.     int tm_hsec;    /* hundreths of second; not in ANSI C */
  26. };
  27.  
  28. clock_t clock(void);
  29. double difftime(time_t _time1, time_t _time2);
  30. time_t mktime(struct tm *_timeptr);
  31. time_t time(time_t *_timer);
  32. char *asctime(const struct tm *_timeptr);
  33. char *ctime(const time_t *_timer);
  34. struct tm *gmtime(const time_t *_timer);
  35. struct tm *localtime(const time_t *_timer);
  36. size_t strftime(char *_s, size_t _maxsize, const char *_format,
  37.                                                 const struct tm *_timeptr);
  38.  
  39. #endif
  40.  
  41.